simplevis: interactive plots with plotly::ggplotly {https://t.co/9hFwIuT508} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Spatially weighted averages in R with sf {https://t.co/X7ZS1iOQkj} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
10 Tips and Tricks for Data Scientists Vol.10 {https://t.co/aNt6BptYAp} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Feature Importance in Random Forest {https://t.co/dFfkRtlqke} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
Taking Outlier Treatment to the Next Level {https://t.co/yBzhcfQYcX} #rstats #DataScience
— R-bloggers (@Rbloggers) July 6, 2021
Tired: PCA + kmeans, Wired: UMAP + GMM {https://t.co/9A3rcaGfaz} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
shiny.fluent Video Tutorial: Building Beautiful Shiny Apps {https://t.co/v4aKVDJe9M} #rstats #DataScience
— R-bloggers (@Rbloggers) July 6, 2021
How to Calculate Partial Correlation coefficient in R-Quick Guide {https://t.co/7wm6jqvgU6} #rstats #DataScience
— R-bloggers (@Rbloggers) July 2, 2021
Working with web data in R part II – APIs {https://t.co/PAGz95wzWc} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Improving a Visualization {https://t.co/wcgty2RZSG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 2, 2021
How open source packages are like smartphone apps {https://t.co/DetgU7sL8o} #rstats #DataScience
— R-bloggers (@Rbloggers) July 3, 2021
Note for DEseq2 time course analysis {https://t.co/Gl4X5d2nXk} #rstats #DataScience
— R-bloggers (@Rbloggers) July 3, 2021
How to structure your data workflow efficiently using R {https://t.co/1uYfk6oxXJ} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Using Geospatial Data in R {https://t.co/KWcGGuga86} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Time Series Introduction with R codes {https://t.co/Cv6BiCAf0X} #rstats #DataScience
— R-bloggers (@Rbloggers) June 16, 2021
Bayesian Linear Regression with Gibbs Sampling using R code {https://t.co/DBkKEAExyt} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
Understanding Logistic Regression {https://t.co/GhfsV0DGF3} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Tutorial: Build a Full Shiny Dashboard With shiny.fluent {https://t.co/zfojPNWmML} #rstats #DataScience
— R-bloggers (@Rbloggers) June 20, 2021
Functional PCA with R {https://t.co/plIRTBZ0zq} #rstats #DataScience
— R-bloggers (@Rbloggers) June 11, 2021
Retrieving Stock Price using R {https://t.co/0NIUaNMUaP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 13, 2021
grafify: Make great-looking ggplot2 graphs quickly with R {https://t.co/ieMMplWSmA} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
Extract text from pdf in R and word Detection {https://t.co/Lg4NV52h51} #rstats #DataScience
— R-bloggers (@Rbloggers) June 15, 2021
New R textbook for machine learning {https://t.co/5pSLfPfLir} #rstats #DataScience
— R-bloggers (@Rbloggers) June 14, 2021
simplevis: interactive plots with plotly::ggplotly {https://t.co/9hFwIuT508} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```